


namespace Core.Extensions
{
    using System;
    using System.Collections.Generic;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Resources;

    /// <summary>
    /// Economical weapon usage Extension class
    /// </summary>
    
    public sealed class EconomicalWeaponUsage: ExtensionBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Extensions.EconomicalWeaponUsage"/> class.
        /// </summary>
        public EconomicalWeaponUsage()
            : base(
                Traduction.extensions_economical_weapon_usage, 
                ExtensionGroupsEnum.Engineering,
                6,
                0, 
                new ExtensionCost(180000,0),
                new ICondition<IExtension>[] {new ExtensionCondition<OptimizedWeaponUsage>(5)} )
        {
            
            
            //Each level of this extension reduces the reactor usage of weapons by an additional 3%.

            Modifiers = new IModifier[]
                            {
                                new Modifier()
                                    {
                                        Feature = FeaturesEnum.WeaponReactorUsage,
                                        ModifiedFeatureType = FeatureTypesEnum.Module,
                                        Value = -0.03
                                    }
                            };

        }

        /// <summary>
        /// Obtains the extension description
        /// </summary>
        public override string Description
        {
            get { return Traduction.extensions_economical_weapon_usage_description; }
        }
    }
}